package com.thm.tfast.modules.sys.model.dto.dict;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @ClassName DictInsertDto
 * @Author THM
 * @Date 2022/10/31 13:50
 * @Version 1.0
 * @Description 数字字典项修改dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DictItemUpdateDto {
    @ApiModelProperty(value = "主键ID")
    @NotNull(message = "字典项ID不能为空")
    private Long id;

    @ApiModelProperty(value = "字典标签")
    @Size(max = 36, message = "字典标签不能超过36位")
    private String label;

    @ApiModelProperty(value = "字典值")
    private Integer value;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
